﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
    public class ProductMapping
    {
 public static Product ConvertToEntity( ViewModelProduct model)
       {
           Product   entity = new Product();
           entity.Id = model.Id;
           entity.Name = model.Name;
           entity.Status = model.Status;
           entity.CategoryId = model.CategoryId;
           entity.Image = model.Image;
           entity.Status = model.Status;
     
           return entity;
       }
    }
}
